import javax.swing.*;
import java.awt.FlowLayout;

public class MultiplyChecker {
	
	JPanel windowContent = new JPanel();
	JLabel label = new JLabel();
	JTextField tf = new JTextField(5);
	JButton bOk = new JButton("Ok");
	JFrame mainFrame = new JFrame();
	JLabel answerLabel = new JLabel();
	
	MultiplyChecker(){

		windowContent.setLayout(new FlowLayout());
		
		windowContent.add(label);
		windowContent.add(tf);
		windowContent.add(bOk);
		windowContent.add(answerLabel);
		
		mainFrame.setContentPane(windowContent);
		mainFrame.setSize(400, 100);
		mainFrame.setVisible(true);
		
		MultiplyCheckerEngine checkerEngine = new MultiplyCheckerEngine(this);
		bOk.addActionListener(checkerEngine);
		
	}
	
	public static void main(String[] args) {
		
		
		MultiplyChecker multiplyChecker = new MultiplyChecker();

	}

}
